package libnetdb.dm.assoc.util;

/**
 * Classes implemented this interface can listen to the event
 * sent out by a <code>Debugger</code>
 *
 * @author Cheng-Ru Lin
 * @version 1.0
 */

public interface DebuggerListener {

    /**
     * Invokes when this listener receive a message-event, such as
     * infomation, error, warning, and so on.
     *
     * @param level the type of this message
     * @param who who sends this message
     * @param message
     * @param time
     */
    public void onMessage(int level, Object who, String message, long time);

    /**
     *
     * @param who
     * @param e
     * @param message
     * @param time
     */
    public void onException(Object who, Throwable e, String message, long time);
}